package com.hmall.search.service;

import com.hmall.api.dto.ItemDTO;
import com.hmall.common.domain.PageDTO;
import com.hmall.search.domain.po.ItemDoc;
import com.hmall.search.domain.query.ItemPageQuery;

import java.io.IOException;

public interface ISearchService {
    PageDTO<ItemDTO> search(ItemPageQuery query);

    void initEs() throws IOException;

    void addORupdate(ItemDoc itemDoc ) throws IOException;


    void delete(Long id) throws IOException;
}
